//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.tl.satoken.domain.entity;

import java.io.Serializable;

public class RoomJoinResult implements Serializable {
    private final boolean success;
    private final String message;
    private final String roomId;

    public boolean isSuccess() {
        return this.success;
    }

    public String getMessage() {
        return this.message;
    }

    public String getRoomId() {
        return this.roomId;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof RoomJoinResult)) {
            return false;
        } else {
            RoomJoinResult other = (RoomJoinResult)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (this.isSuccess() != other.isSuccess()) {
                return false;
            } else {
                Object this$message = this.getMessage();
                Object other$message = other.getMessage();
                if (this$message == null) {
                    if (other$message != null) {
                        return false;
                    }
                } else if (!this$message.equals(other$message)) {
                    return false;
                }

                Object this$roomId = this.getRoomId();
                Object other$roomId = other.getRoomId();
                if (this$roomId == null) {
                    if (other$roomId != null) {
                        return false;
                    }
                } else if (!this$roomId.equals(other$roomId)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof RoomJoinResult;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        result = result * 59 + (this.isSuccess() ? 79 : 97);
        Object $message = this.getMessage();
        result = result * 59 + ($message == null ? 43 : $message.hashCode());
        Object $roomId = this.getRoomId();
        result = result * 59 + ($roomId == null ? 43 : $roomId.hashCode());
        return result;
    }

    public String toString() {
        boolean var10000 = this.isSuccess();
        return "RoomJoinResult(success=" + var10000 + ", message=" + this.getMessage() + ", roomId=" + this.getRoomId() + ")";
    }

    public RoomJoinResult(final boolean success, final String message, final String roomId) {
        this.success = success;
        this.message = message;
        this.roomId = roomId;
    }
}
